home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / x25 / nrs.shar.Z / nrs.shar / pp.SH < prev    next >
Encoding:
Text File  |  1990-04-27  |  1.0 KB  |  54 lines

  1. case $CONFIG in
  2.     '') . config.sh ;;
  3. esac
  4. outputfile=pp.cf
  5. rm -f $outputfile.$$
  6. echo "Creating $outputfile (with variable substitutions)"
  7. if cat >$outputfile.$$ <<!GROK!THIS!
  8. # RCSid[] = "@(#)$Header: pp.SH,v 3.1 86/12/24 10:44:10 pb Rel $"
  9. #
  10. ##################################################
  11. ##################################################
  12. ##############
  13. ############## configure for pp
  14. ##############
  15. ##################################################
  16. ##################################################
  17.  
  18. # the directory to search
  19. directory $datadir
  20.  
  21. # enable tracing
  22. verbose 1
  23.  
  24. # add comment header
  25. comment hdr.file
  26.  
  27. # output format
  28. output pp
  29.  
  30. context MAIL janet
  31. context MAIL pss
  32.  
  33. domains
  34.  
  35. filedmn    pp.dmn    -dmn-
  36. filedmn    pp.chan    -chan-
  37. !GROK!THIS!
  38. then
  39.     : OK
  40. else
  41.     echo "    " Failed to create $outputfile.$$
  42.     exit 1
  43. fi
  44. if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
  45. then
  46.     rm -f $outputfile.$$
  47.     echo "    " $outputfile not affected
  48. elif mv $outputfile.$$ $outputfile
  49. then
  50.     echo "    " $outputfile updated
  51. else
  52.     echo "+++    " $outputfile left in $outputfile.$$
  53. fi
  54.